home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Internet News 2001 March
/
Internet News 2001-03 - CD-ROM.rar
/
IN200103.ISO
/
Linux
/
ETLinux
/
_7eboot-0.70a.flp
/
init
/
PKGLOAD
< prev
next >
Wrap
Text File
|
1999-08-01
|
784b
|
48 lines
#!/bin/sh
#
# pkgload - loads packages as configured by /conf/pkgconf (on boot floppy)
#
###########################################################################
. /etc/conf/pkgconf # set package configuration variables
echo -n "Loading packages from:"
if [ "$SOURCE" = "floppy" ]
then
echo " floppy"
echo
echo "[---- Remove boot floppy and insert data disk(s) ----]"
read blah
. /etc/rc.d/flpload
fi
if [ "$SOURCE" = "network" ]
then
echo " network"
. /etc/rc.d/netload
fi
if [ "$SOURCE" = "fixed" ]
then
echo " fixed drive or CD"
if mount -t $FSTYPE $DEVICE /fixed
then
cd /fixed/$FIXEDPATH
if [ -f default ]
then
packages=`cat default`
else
packages=`ls *.tgz`
fi
for i in $packages
do
pkgadd $i
done
cd /; umount /fixed
fi
fi